//
//  HECosulReportModel.m
//  HealthFamily
//
//  Created by 吴欧 on 2020/11/23.
//  Copyright © 2020 honglutec. All rights reserved.
//

#import "HECosulReportModel.h"

@implementation HECosulReportModel

- (HEDictdiseaseknowledge *)dictDiseaseKnowledge {
    if (!_dictDiseaseKnowledge) {
        NSDictionary *dict = [DYTools getContainersObjectFromJsonString: _report];
        _dictDiseaseKnowledge = [HEDictdiseaseknowledge mj_objectWithKeyValues:dict];
    }
    return _dictDiseaseKnowledge;
}

- (NSArray *)tipsArr {
    if (!_tipsArr) {
        _tipsArr = @[@{@"name":@"发病部位在哪里?",@"value": IsNotNull(self.dictDiseaseKnowledge.disease_name)},
                     @{@"name":@"应该挂什么科?",@"value": IsNotNull(self.dictDiseaseKnowledge.disease_ks)},
        @{@"name":@"有什么典型症状?",@"value": IsNotNull(self.dictDiseaseKnowledge.disease_sym)},
        @{@"name":@"应该做哪些检查项目呢?",@"value": IsNotNull(self.dictDiseaseKnowledge.disease_check)},
        @{@"name":@"这样的病症传染吗?",@"value": IsNotNull(self.dictDiseaseKnowledge.disease_infectivity)},
        @{@"name":@"高发人群?",@"value": IsNotNull(self.dictDiseaseKnowledge.disease_crowd)}];
    }
    return _tipsArr;
}

- (NSArray *)questionArr {
    if (!_questionArr) {
        _questionArr = @[].mutableCopy;
        _answerArr = @[].mutableCopy;

        NSArray *qArr = [_dzbl componentsSeparatedByString:@"@"];
        for (NSString *qes in qArr) {
            if (![DYTools isBlankString:qes]) {
                NSArray *item = [qes componentsSeparatedByString:@"："];
                if (item.count > 0) {
                    [_questionArr addObject:item[0]];
                    [_answerArr addObject:item[1]];
                }
            }
        }
    }
    return _questionArr;
}

@end


@implementation HEDictdiseaseknowledge


@end
